import request from '@/utils/request'

/* 列表分页*/
export function os_order_page(data) {
  return request({
    url: '/sale/os-order/page',
    method: 'post',
    data: data
  })
}

/* 查询订单状态数量*/
export function os_order_state_count(data) {
  return request({
    url: '/sale/os-order/order-state-count',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function os_order_save(data) {
  return request({
    url: '/sale/os-order/save',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function os_order_update(data) {
  return request({
    url: '/sale/os-order/update',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function os_order_detail(data) {
  return request({
    url: '/sale/os-order/' + data,
    method: 'post'
  })
}

/* 删除*/
export function os_order_delete(data) {
  return request({
    url: '/sale/os-order/delete',
    method: 'post',
    data: data
  })
}

/* 取消 */
export function os_order_cancel(data) {
  return request({
    url: '/sale/os-order/cancel/' + data,
    method: 'post'
  })
}

/* 完成外发订单 */
export function os_order_complete(data) {
  return request({
    url: '/sale/os-order/complete',
    method: 'post',
    data: data
  })
}

